package cn.itcast.dao;

import cn.itcast.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {
    /**
     *
     * @param orderDate
     * @return根据预约日期查询
     */
    Long findCountByOrderDate(Date orderDate);

    /**
     *
     * @param orderSetting
     * 根据日期跟新预约人数
     */
    void editNumberByOrderDate(OrderSetting orderSetting);

    /**
     *
     * @param orderSetting
     * 新增
     */
    void upload(OrderSetting orderSetting);

    /**
     * 通过月份查询预约数据
     * @param map
     * @return
     */
    List<OrderSetting> getOrderSettingByMonth(Map map);

    /**
     *
     * @param date
     * @return 根据预约日期查询预约设置信息
     */
    OrderSetting findByOrderDate(Date date);

    /**
     * 跟新已预约人数
     * @param orderSetting
     */
    void editReservationsByOrderDate(OrderSetting orderSetting);
}
